import requests
from common.role_factory import RoleFactory
session=requests.session()
resp1=session.post(url="http://192.168.58.3:9184/schools",
                   json={"eb":1,"county":"林芝市","livingUrl":"http://goodgoodstudy","name":"林芝市","schoolId":1001,"parentSchId":None},
                   headers={"Authorization": RoleFactory().creat_role("root"),
                         "Content-Type": "application/json",
                         "User-Agent":"Mozilla/5.0(Windows NT 10.0;WOW64) AppleWebKit/537.36(KHTML, likeGecko) Chrome/91.0.4472.124Safari/537.36",
                         "Accept-Language":"zh-CN,zh;q = 0.9"}
                   )
# resp2=session.post(url="http://192.168.58.3:9184/schools",
#                    json={"eb":1,"county":"波密县","livingUrl":"http://goodgoodstudy","name":"波密县教育局","schoolId":1004,"parentSchId":1005},
#                    headers={"Authorization": RoleFactory().creat_role("root"),
#                                              "Content-Type": "application/json",
#                                              "User-Agent":"Mozilla/5.0(Windows NT 10.0;WOW64) AppleWebKit/537.36(KHTML, likeGecko) Chrome/91.0.4472.124Safari/537.36",
#                                              "Accept-Language":"zh-CN,zh;q = 0.9"}
#                    )
# resp3=session.post(url="http://192.168.58.3:9184/schools",
#                    json={"eb":1,"county":"米林县","livingUrl":"http://goodgoodstudy","name":"米林县","schoolId":1003,"parentSchId":1001},
#                    headers={"Authorization": RoleFactory().creat_role("root"),
#                                              "Content-Type": "application/json",
#                                              "User-Agent":"Mozilla/5.0(Windows NT 10.0;WOW64) AppleWebKit/537.36(KHTML, likeGecko) Chrome/91.0.4472.124Safari/537.36",
#                                              "Accept-Language":"zh-CN,zh;q = 0.9"}
#                    )
# resp4=session.post(url="http://192.168.58.3:9184/schools",
#                    json={"eb":0,"county":"波密县","livingUrl":"http://goodgoodstudy","name":"波密一中","schoolId":1002,"parentSchId":1004},
#                    headers={"Authorization": RoleFactory().creat_role("root"),
#                                              "Content-Type": "application/json",
#                                              "User-Agent":"Mozilla/5.0(Windows NT 10.0;WOW64) AppleWebKit/537.36(KHTML, likeGecko) Chrome/91.0.4472.124Safari/537.36",
#                                              "Accept-Language":"zh-CN,zh;q = 0.9"}
#                    )
# resp5=session.post(url="http://192.168.58.3:9184/schools",
#                    json={"eb":0,"county":"米林县","livingUrl":"http://goodgoodstudy","name":"米林一中","schoolId":1001,"parentSchId":1003},
#                    headers={"Authorization": RoleFactory().creat_role("root"),
#                                              "Content-Type": "application/json",
#                                              "User-Agent":"Mozilla/5.0(Windows NT 10.0;WOW64) AppleWebKit/537.36(KHTML, likeGecko) Chrome/91.0.4472.124Safari/537.36",
#                                              "Accept-Language":"zh-CN,zh;q = 0.9"}
#                    )